package system;
import java.rmi.Remote;
import java.rmi.RemoteException;



/**
 * A interface between the computer and the space
 * 
 * @author Mayuri Karra
 * @author Bing Wei
 */
public interface Worker2Master extends Remote {

	/**
	 * Name of the Computer to Space service
	 */
	public static String SERVICE_NAME = "Worker2MasterService";
	

	/**
	 * Remote computers use this to register with the Space
	 * 
	 * @param computer	
	 *            Reference to a computer that registered with the Space
	 * @throws RemoteException
	 */

	void register(Worker worker, String hostName, int processId) throws RemoteException;
	//void test(Worker worker) throws RemoteException;
	
	public void putLookupResult(String rst) throws RemoteException;
}